// pages/spliceMenu/spliceMenu.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    
  },
  chooseSpliceLongImg(){
    wx.navigateTo({
      url: '../splicePhoto/splice?choosed=longImages'
    })
  },
  chooseSpliceFrame() {
    wx.navigateTo({
      url: '../splicePhoto/splice?choosed=photoFrame'
    })
  },
  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {
    return {
      title: '我和怪兽有个合影，快来试试吧！',
      path: `/pages/index/index`,
      imageUrl: '/assets/images/wx-icon.png',
      success: function (res) {
        wx.showToast({
          title: '转发成功',
          icon: 'success',
          duration: 1500
        })
        // 转发成功
      },
      fail: function (res) {
        wx.showToast({
          title: '转发失败',
          icon: 'none',
          duration: 1500
        })
        // 转发失败
      }
    }
  }
})